package com.lagou.edu.container;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author liangzj
 * @date 2021/4/10 13:25
 */
public class Host {

    private String name;

    private String appBase;

    private List<Context> contexts = new CopyOnWriteArrayList<>();

    public Host() {
    }

    public Host(String name, String appBase, List<Context> contexts) {
        this.name = name;
        this.appBase = appBase;
        this.contexts = contexts;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAppBase() {
        return appBase;
    }

    public void setAppBase(String appBase) {
        this.appBase = appBase;
    }

    public List<Context> getContexts() {
        return contexts;
    }

    public void setContexts(List<Context> contexts) {
        this.contexts = contexts;
    }
}
